package Lirmm.DataStructure;

import java.util.ArrayList;
import java.util.List;

public class Method 

{
	private String MethodName;
	private List<String> calledMethods = new ArrayList<String>();
	private List<String> accessedAttributes = new ArrayList<String>();
	private List<String> Parameters = new ArrayList<String>();
	private List<String> localVaraibles = new ArrayList<String>();
	
	
	
	public Method ()
	{
		this.MethodName="";
	}
	public void setMethodName (String nameMethod)
	{
		this.MethodName=nameMethod;
	}
	
	public String getMethodName()
	{
		
		return this.MethodName;
	}
	
	public List<String> getCalledMethods ()
	{
		return this.calledMethods;
		
	}
	
	public List<String> getAccessedAttributes()
	{
		return this.accessedAttributes;
	}
	
	public List<String> getParameters()
	{
		return this.Parameters;
	}
	public List<String> localVariables ()
	{
		return this.localVaraibles;
	}
	
	public void setMethodCalled(List<String> MethodName)
	{
		this.calledMethods.addAll(MethodName);
	}
	public void setFieldCalled(List<String> FieldName)
	{
		this.accessedAttributes.addAll(FieldName);
	}
}


